package com.jboost.modules.app.dto;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.List;

public class XmsjList {
    /**
     * code : 200
     * message : success
     * now : 2020-08-12 16:29:37
     * data : {"list":[{"serial_id":"O93","opportunity_id":1102364611,"name":"ruby的新建商机－－测试","user_id":[11858712,11858713],"company_id":1101048081,"main_user":11858712,"create_user":11858712,"handler":[11858713],"currency":"CNY","origin":1101043666,"origin_name":"海关数据","amount":"2000","amount_rmb":"2000","amount_usd":"284.44","exchange_rate":"100","exchange_rate_usd":"14.22210","account_date":"1970-01-01","stage":1101043677,"type":2,"type_name":"新客户商机","fail_remark":"","stage_type":2,"stage_type_name":"赢单","fail_type":0,"remark":"","edit_time":"2020-04-01 10:46:08","trail_time":"2020-03-02 19:15:23","order_time":"2020-04-01 10:46:08","create_time":"2020-03-02 14:10:50","update_time":"2020-04-01 10:46:08","enable_flag":1,"trail_active_flag":0,"external_field_data":{"1101060294":"","1101060295":"","1102341784":""},"create_type":1,"product_list":null,"product_total_count":"0.0000","product_other_amount":"0.0000","product_total_amount":"0.0000","product_edit_time":"","flow_id":1101043671,"approval_status":-1,"main_lead_id":0,"approval_flow_info":[],"department_info":{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0"},"stage_stay_time":-1,"create_user_info":{"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg"},"main_user_info":{"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg","department_info":[{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]},"handler_info":[{"user_id":"11858713","nickname":"大乔","avatar":"https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng","role_id":"4"}],"company":{"company_id":1101048081,"name":"乔2的客户3号","is_archive":1},"customer":[],"lead_name":"","stage_info":{"stage_id":1101043677,"client_id":14119,"flow_id":1101043671,"type":2,"name":"赢单","success_rate":100,"rank":1,"remark":null,"create_user":11858711,"enable_flag":1,"create_time":"2019-11-15 11:52:05","update_time":"2020-02-12 16:09:09","tip":"恭喜赢单，再接再厉！","review_flag":0},"fail_type_name":"","fail_stage_info":[],"sale_flow_name":"默认销售流程","is_pin":0,"lock_flag":0}],"totalItem":100}
     */

    private int code;
    private String message;
    private String now;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNow() {
        return now;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : [{"serial_id":"O93","opportunity_id":1102364611,"name":"ruby的新建商机－－测试","user_id":[11858712,11858713],"company_id":1101048081,"main_user":11858712,"create_user":11858712,"handler":[11858713],"currency":"CNY","origin":1101043666,"origin_name":"海关数据","amount":"2000","amount_rmb":"2000","amount_usd":"284.44","exchange_rate":"100","exchange_rate_usd":"14.22210","account_date":"1970-01-01","stage":1101043677,"type":2,"type_name":"新客户商机","fail_remark":"","stage_type":2,"stage_type_name":"赢单","fail_type":0,"remark":"","edit_time":"2020-04-01 10:46:08","trail_time":"2020-03-02 19:15:23","order_time":"2020-04-01 10:46:08","create_time":"2020-03-02 14:10:50","update_time":"2020-04-01 10:46:08","enable_flag":1,"trail_active_flag":0,"external_field_data":{"1101060294":"","1101060295":"","1102341784":""},"create_type":1,"product_list":null,"product_total_count":"0.0000","product_other_amount":"0.0000","product_total_amount":"0.0000","product_edit_time":"","flow_id":1101043671,"approval_status":-1,"main_lead_id":0,"approval_flow_info":[],"department_info":{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0"},"stage_stay_time":-1,"create_user_info":{"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg"},"main_user_info":{"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg","department_info":[{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]},"handler_info":[{"user_id":"11858713","nickname":"大乔","avatar":"https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng","role_id":"4"}],"company":{"company_id":1101048081,"name":"乔2的客户3号","is_archive":1},"customer":[],"lead_name":"","stage_info":{"stage_id":1101043677,"client_id":14119,"flow_id":1101043671,"type":2,"name":"赢单","success_rate":100,"rank":1,"remark":null,"create_user":11858711,"enable_flag":1,"create_time":"2019-11-15 11:52:05","update_time":"2020-02-12 16:09:09","tip":"恭喜赢单，再接再厉！","review_flag":0},"fail_type_name":"","fail_stage_info":[],"sale_flow_name":"默认销售流程","is_pin":0,"lock_flag":0}]
         * totalItem : 100
         */

        private int totalItem;
        private List<ListBean> list;

        public int getTotalItem() {
            return totalItem;
        }

        public void setTotalItem(int totalItem) {
            this.totalItem = totalItem;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        @Data
        public static class ListBean {
            /**
             * serial_id : O93
             * opportunity_id : 1102364611
             * name : ruby的新建商机－－测试
             * user_id : [11858712,11858713]
             * company_id : 1101048081
             * main_user : 11858712
             * create_user : 11858712
             * handler : [11858713]
             * currency : CNY
             * origin : 1101043666
             * origin_name : 海关数据
             * amount : 2000
             * amount_rmb : 2000
             * amount_usd : 284.44
             * exchange_rate : 100
             * exchange_rate_usd : 14.22210
             * account_date : 1970-01-01
             * stage : 1101043677
             * type : 2
             * type_name : 新客户商机
             * fail_remark :
             * stage_type : 2
             * stage_type_name : 赢单
             * fail_type : 0
             * remark :
             * edit_time : 2020-04-01 10:46:08
             * trail_time : 2020-03-02 19:15:23
             * order_time : 2020-04-01 10:46:08
             * create_time : 2020-03-02 14:10:50
             * update_time : 2020-04-01 10:46:08
             * enable_flag : 1
             * trail_active_flag : 0
             * external_field_data : {"1101060294":"","1101060295":"","1102341784":""}
             * create_type : 1
             * product_list : null
             * product_total_count : 0.0000
             * product_other_amount : 0.0000
             * product_total_amount : 0.0000
             * product_edit_time :
             * flow_id : 1101043671
             * approval_status : -1
             * main_lead_id : 0
             * approval_flow_info : []
             * department_info : {"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0"}
             * stage_stay_time : -1
             * create_user_info : {"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg"}
             * main_user_info : {"user_id":"11858712","nickname":"小乔1","avatar":"https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg","department_info":[{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]}
             * handler_info : [{"user_id":"11858713","nickname":"大乔","avatar":"https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng","role_id":"4"}]
             * company : {"company_id":1101048081,"name":"乔2的客户3号","is_archive":1}
             * customer : []
             * lead_name :
             * stage_info : {"stage_id":1101043677,"client_id":14119,"flow_id":1101043671,"type":2,"name":"赢单","success_rate":100,"rank":1,"remark":null,"create_user":11858711,"enable_flag":1,"create_time":"2019-11-15 11:52:05","update_time":"2020-02-12 16:09:09","tip":"恭喜赢单，再接再厉！","review_flag":0}
             * fail_type_name :
             * fail_stage_info : []
             * sale_flow_name : 默认销售流程
             * is_pin : 0
             * lock_flag : 0
             */

            private String serial_id;
            private String opportunity_id;
            private String name;
            private String company_id;
            private String main_user;
            private String create_user;
            private String currency;
            private String origin;
            private String origin_name;
            private String amount;
            private String amount_rmb;
            private String amount_usd;
            private String exchange_rate;
            private String exchange_rate_usd;
            private String account_date;
            private String stage;
            private String type;
            private String type_name;
            private String fail_remark;
            private String stage_type;
            private String stage_type_name;
            private String fail_type;
            private String remark;
            private String edit_time;
            private String trail_time;
            private String order_time;
            private String create_time;
            private String update_time;
            private String enable_flag;
            private String trail_active_flag;
            private ExternalFieldDataBean external_field_data;
            private String create_type;
            private Object product_list;
            private String product_total_count;
            private String product_other_amount;
            private String product_total_amount;
            private String product_edit_time;
            private String flow_id;
            private String approval_status;
            private String main_lead_id;
            private DepartmentInfoBean department_info;
            private String stage_stay_time;
            private CreateUserInfoBean create_user_info;
            private MainUserInfoBean main_user_info;
            private CompanyBean company;
            private String lead_name;
            private StageInfoBean stage_info;
            private String fail_type_name;
            private String sale_flow_name;
            private String is_pin;
            private String lock_flag;
            private List<Integer> user_id;
            private List<Integer> handler;
            private List<?> approval_flow_info;
            private List<HandlerInfoBean> handler_info;
            private List<?> customer;
            private List<?> fail_stage_info;

            public static class ExternalFieldDataBean {
                /**
                 * 1101060294 :
                 * 1101060295 :
                 * 1102341784 :
                 */

                @SerializedName("1101060294")
                private String _$1101060294;
                @SerializedName("1101060295")
                private String _$1101060295;
                @SerializedName("1102341784")
                private String _$1102341784;

                public String get_$1101060294() {
                    return _$1101060294;
                }

                public void set_$1101060294(String _$1101060294) {
                    this._$1101060294 = _$1101060294;
                }

                public String get_$1101060295() {
                    return _$1101060295;
                }

                public void set_$1101060295(String _$1101060295) {
                    this._$1101060295 = _$1101060295;
                }

                public String get_$1102341784() {
                    return _$1102341784;
                }

                public void set_$1102341784(String _$1102341784) {
                    this._$1102341784 = _$1102341784;
                }
            }

            public static class DepartmentInfoBean {
                /**
                 * id : 8535
                 * name : 风险投资部门
                 * prefix : 0-
                 * parent_id : 0
                 */

                private String id;
                private String name;
                private String prefix;
                private String parent_id;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getPrefix() {
                    return prefix;
                }

                public void setPrefix(String prefix) {
                    this.prefix = prefix;
                }

                public String getParent_id() {
                    return parent_id;
                }

                public void setParent_id(String parent_id) {
                    this.parent_id = parent_id;
                }
            }

            public static class CreateUserInfoBean {
                /**
                 * user_id : 11858712
                 * nickname : 小乔1
                 * avatar : https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg
                 */

                private String user_id;
                private String nickname;
                private String avatar;

                public String getUser_id() {
                    return user_id;
                }

                public void setUser_id(String user_id) {
                    this.user_id = user_id;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }
            }

            public static class MainUserInfoBean {
                /**
                 * user_id : 11858712
                 * nickname : 小乔1
                 * avatar : https://v4client-oss.xiaoman.cn/11858711/901c6d505bba7fba7fe6970a22bdcb44911270a51a85f52171f34374f9293abf.jpg
                 * department_info : [{"id":"8535","name":"风险投资部门","prefix":"0-","parent_id":"0","admin_type":"1"}]
                 */

                private String user_id;
                private String nickname;
                private String avatar;
                private List<DepartmentInfoBeanX> department_info;

                public String getUser_id() {
                    return user_id;
                }

                public void setUser_id(String user_id) {
                    this.user_id = user_id;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }

                public List<DepartmentInfoBeanX> getDepartment_info() {
                    return department_info;
                }

                public void setDepartment_info(List<DepartmentInfoBeanX> department_info) {
                    this.department_info = department_info;
                }

                public static class DepartmentInfoBeanX {
                    /**
                     * id : 8535
                     * name : 风险投资部门
                     * prefix : 0-
                     * parent_id : 0
                     * admin_type : 1
                     */

                    private String id;
                    private String name;
                    private String prefix;
                    private String parent_id;
                    private String admin_type;

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public String getPrefix() {
                        return prefix;
                    }

                    public void setPrefix(String prefix) {
                        this.prefix = prefix;
                    }

                    public String getParent_id() {
                        return parent_id;
                    }

                    public void setParent_id(String parent_id) {
                        this.parent_id = parent_id;
                    }

                    public String getAdmin_type() {
                        return admin_type;
                    }

                    public void setAdmin_type(String admin_type) {
                        this.admin_type = admin_type;
                    }
                }
            }

            @Data
            public static class CompanyBean {
                /**
                 * company_id : 1101048081
                 * name : 乔2的客户3号
                 * is_archive : 1
                 */

                private String company_id;
                private String name;
                private String is_archive;

            }

            @Data
            public static class StageInfoBean {
                /**
                 * stage_id : 1101043677
                 * client_id : 14119
                 * flow_id : 1101043671
                 * type : 2
                 * name : 赢单
                 * success_rate : 100
                 * rank : 1
                 * remark : null
                 * create_user : 11858711
                 * enable_flag : 1
                 * create_time : 2019-11-15 11:52:05
                 * update_time : 2020-02-12 16:09:09
                 * tip : 恭喜赢单，再接再厉！
                 * review_flag : 0
                 */

                private String stage_id;
                private String client_id;
                private String flow_id;
                private String type;
                private String name;
                private String success_rate;
                private String rank;
                private Object remark;
                private String create_user;
                private String enable_flag;
                private String create_time;
                private String update_time;
                private String tip;
                private String review_flag;
            }

                public static class HandlerInfoBean {
                    /**
                     * user_id : 11858713
                     * nickname : 大乔
                     * avatar : https://jinyuncrmdevelop.oss-cn-hangzhou.aliyuncs.com/uploader/63147bc3abbea9fd3a922ab52900823dd10f2ca2/3923-portraitpng
                     * role_id : 4
                     */

                    private String user_id;
                    private String nickname;
                    private String avatar;
                    private String role_id;

                    public String getUser_id() {
                        return user_id;
                    }

                    public void setUser_id(String user_id) {
                        this.user_id = user_id;
                    }

                    public String getNickname() {
                        return nickname;
                    }

                    public void setNickname(String nickname) {
                        this.nickname = nickname;
                    }

                    public String getAvatar() {
                        return avatar;
                    }

                    public void setAvatar(String avatar) {
                        this.avatar = avatar;
                    }

                    public String getRole_id() {
                        return role_id;
                    }

                    public void setRole_id(String role_id) {
                        this.role_id = role_id;
                    }
                }
            }
        }
    }
